#获取base image
FROM adoptopenjdk/openjdk8:latest 
#类似于执行 linux指令
RUN   mkdir  /opt/app
#类似于linux  copy指令
COPY  target/test_demo.jar  /opt/app/
#时区设置
RUN echo "Asia/Shanghai" > /etc/timezone
#对外端口
EXPOSE 8098
#执行命令
#CMD ["java", "-jar", "/opt/app/syzton_edu_base.jar"]
ENV JAVA_OPTS="-Xmx256m -Xms256m"
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /opt/app/test_demo.jar


